--[[

NetAdmin by Tomato3017
Released as a Creative Commons License

USAGE:
	Network wide configuration and Administration


]]


NETADMIN_VERSION = 1.0
netadmin = {}
file.Write("netadmin/serial.txt", ULib.serialize(file.Read("netadmin/test.txt")))



Msg("NETADMIN VERSION " .. NETADMIN_VERSION .. " By Tomato3017\n")
include("netadmin/modload.lua")
Msg("NETADMIN:modload.lua loaded!\n")
include("netadmin/config.lua")
Msg("NETADMIN:config.lua loaded!\n")
include("netadmin/core.lua")
Msg("NETADMIN:core.lua loaded!\n")
include("netadmin/lib.lua")
Msg("NETADMIN:lib.lua loaded!\n")
include("netadmin/commands.lua")
Msg("NETADMIN:commands.lua loaded!\n")
Msg("NETADMIN:LOADING FINISHED\n")

--Thank you ULX
local sh_modules = file.FindInLua( "netadmin/modules/sh/*.lua" )
local cl_modules = file.FindInLua( "netadmin/modules/cl/*.lua" )
local sv_modules = file.FindInLua( "netadmin/modules/*.lua" )


for _, file in ipairs( sv_modules ) do
	include( "modules/" .. file )
end
for _, file in ipairs( sh_modules ) do
	include( "modules/sh/" .. file )
end	
AddCSLuaFile( "netadmin/netadmin_cl_init.lua" )

for _, file in ipairs( cl_modules ) do
	AddCSLuaFile( "netadmin/modules/cl/" .. file )
end
	
for _, file in ipairs( sh_modules ) do
	AddCSLuaFile( "netadmin/modules/sh/" .. file )
end